package com.svse.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.svse.component.MybatisRedisCache;
import com.svse.entity.UserEntity;
import org.apache.ibatis.annotations.CacheNamespace;
import org.apache.ibatis.session.RowBounds;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 李宇航
 * @since 2019-10-14
 */
@CacheNamespace(implementation = MybatisRedisCache.class, eviction = MybatisRedisCache.class)
public interface    UserMapper extends BaseMapper<UserEntity> {
    /**
     * 分页查询
     * @param rowBounds
     * @return
     */
    List<UserEntity> pageList(RowBounds rowBounds);

    /**
     * 全查询

     * @return
     */
    List<UserEntity> findList();

}
